import request from '@/utils/request'

// 查询列表信息
export function getBookList(query) {
  return request({
    url: '/yijing/book/list',
    method: 'get',
    params: query
  })
}

// 新增
export function addBook(data) {
  return request({
    url: '/yijing/book',
    method: 'post',
    data: data
  })
}

// 修改
export function updateBook(data) {
  return request({
    url: '/yijing/book',
    method: 'put',
    data: data
  })
}

// 修改状态
export function changeBookStatus(data) {
  return request({
    url: '/yijing/book/updateStatus',
    method: 'put',
    data: data
  })
}